package com.example.generator.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.common.response.R;
import com.example.generator.domain.Gen;
import com.example.generator.mapper.GenMapper;
import com.example.generator.service.GenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GenServiceImpl implements GenService {
    @Autowired
    private GenMapper genMapper;

    @Override
    public R<List<Gen>> getList() {
        List<Gen> gens = genMapper.selectList(new LambdaQueryWrapper<>());
        return R.ok(gens);
    }
}
